package com.cloudeasy.area.util;

import com.cloudeasy.api.vo.area.AreaRelyVO;
import com.cloudeasy.area.po.AreaRely;
import org.springframework.beans.BeanUtils;

/**
 * 区域依赖工具类
 */
public class AreaRelyUtil {
    /**
     * 转换VO对象
     *
     * @param areaRely {@link AreaRely}
     * @return {@link AreaRelyVO}
     */
    public static AreaRelyVO convert(AreaRely areaRely) {
        AreaRelyVO areaRelyVO = new AreaRelyVO();
        BeanUtils.copyProperties(areaRely, areaRelyVO);
        return areaRelyVO;
    }
}
